package com.dongdongshop.service;

import com.dongdongshop.pojo.TbItem;
import com.dongdongshop.pojo.TbItemCat;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ItemCatService {
    PageInfo<TbItemCat> getListItemCat(Integer pageNumber, Integer pageSize, Long parentId);

    TbItemCat getItemById(Long id);

    int insertItemCat(TbItemCat tbItemCat);

    TbItemCat getTbItemCatById(Long id);

    int updateTbItemCat(TbItemCat tbItemCat);

    int deleteItemCat(Long[] ids);

    List<TbItemCat> getItemByIds(Long[] ids);

    List<TbItemCat> getItemByParentId(Long parentId);

    List<TbItem> getItemByGoodsId(Long goodsId);

    TbItem getItemByItemId(Long itemId);
}
